﻿@model IEnumerable<EAD_CA3.Models.FixtureData>

@{
    ViewBag.Title = "Full Fixture List";
}

<h2>@ViewBag.Title</h2>
<p>
    Welcome to the GAA National Football League 2013 Fixture List.
</p>
<p>
    @Html.ActionLink("Create New Fixture", "Create")
</p>
<table>
    <tr>
        <th>
            Home Team
        </th>
        <th>
            Away Team
        </th>
        <th>
            Division
        </th>
        <th>
            Fixture Date
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Home_Team)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Away_Team)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Division)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fixture_Date)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ID })
        </td>
    </tr>
}
</table>
